package com.xuecheng.media.agent.sentinel;

import com.xuecheng.common.domain.code.CommonErrorCode;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.media.agent.MediaTeacherAgent;
import org.springframework.stereotype.Component;

/**
 * @author wuyunyun
 * @data 2021/10/16 0:24
 */
@Component
public class MediaTeacherAgentFallback implements MediaTeacherAgent {

    @Override
    public RestResponse<Integer> getTeacherMediaCount(Long mediaId) {
        return RestResponse.validfail(CommonErrorCode.FUSE);
    }
}
